i2 = input() |
i2 = float(i2) |
i1 = float(i1) |
i1 = input() |
print("Result:") |
print("Enter two floats") |
print(i1 + i2) |
1 | print("Enter two floats") |
2 | i1 = input() |
3 | i1 = float(i1) |
4 | i2 = input() |
5 | i2 = float(i2) |
6 | print("Result:") |
7 | print(i1 + i2) |
print("Your word:") |
print("Enter four characters") |
print(i1 + i2 + i3 + i4) |
i3 = input() |
i4 = input() |
i1 = input() |
i2 = input() |
1 | print("Enter four characters") |
2 | i1 = input() |
3 | i2 = input() |
4 | i3 = input() |
5 | i4 = input() |
6 | print("Your word:") |
7 | print(i1 + i2 + i3 + i4) |
print("Your word") |
i = input() |
print(i) |
i = i + "ame" |
print("Enter a character to go before 'ame' to make a word") |
1 | print("Enter a character to go before 'ame' to make a word") |
2 | i = input() |
3 | i = i + "ame" |
4 | print("Your word") |
5 | print(i) |
i3 = input() |
i2 = input() |
print("Result:") |
print("Enter three numbers and I will add them together") |
i2 = int(i2) |
print(i1 + i2 + i3) |
i1 = input() |
i3 = int(i3) |
i1 = int(i1) |
1 | print("Enter three numbers and I will add them together") |
2 | i1 = input() |
3 | i1 = int(i1) |
4 | i2 = input() |
5 | i2 = int(i2) |
6 | i3 = input() |
7 | i3 = int(i3) |
8 | print("Result:") |
9 | print(i1 + i2 + i3) |
print(s3) |
print("Enter two strings") |
s2 = input() |
s3 = s1 + "-" + s2 |
s1 = input() |
1 | print("Enter two strings") |
2 | s1 = input() |
3 | s2 = input() |
4 | s3 = s1 + "-" + s2 |
5 | print(s3) |
print("They were not identical") |
print("Enter two strings that are identical") |
print("They were identical") |
else: |
s2 = input() |
if s1 == s2: |
s1 = input() |
  print("They were not identical") |
print("Enter two strings that are identical") |
  print("They were identical") |
else: |
s2 = input() |
if s1 == s2: |
s1 = input() |
1 | print("Enter two strings that are identical") |
2 | s1 = input() |
3 | s2 = input() |
4 | if s1 == s2: |
5 |   print("They were identical") |
6 | else: |
7 |   print("They were not identical") |
i1 = int(i1) |
print("Enter a number greater than 10") |
print("That wasn't greater than 10") |
i1 = input() |
else: |
print("That is greater than 10") |
if i1 > 10: |
i1 = int(i1) |
print("Enter a number greater than 10") |
  print("That wasn't greater than 10") |
i1 = input() |
else: |
  print("That is greater than 10") |
if i1 > 10: |
1 | print("Enter a number greater than 10") |
2 | i1 = input() |
3 | i1 = int(i1) |
4 | if i1 > 10: |
5 |   print("That is greater than 10") |
6 | else: |
7 |   print("That wasn't greater than 10") |
8 |    |
print("Enter three numbers and I will multiply them together") |
i3 = int(i3) |
i1 = int(i1) |
print(i1 * i2 * i3) |
i2 = input() |
i3 = input() |
i1 = input() |
i2 = int(i2) |
1 | print("Enter three numbers and I will multiply them together") |
2 | i1 = input() |
3 | i1 = int(i1) |
4 | i2 = input() |
5 | i2 = int(i2) |
6 | i3 = input() |
7 | i3 = int(i3) |
8 | print(i1 * i2 * i3) |
else: |
print("Enter a number") |
i2 = input() |
i2 = int(i2) |
i1 = int(i1) |
print("The second number is smaller") |
i1 = input() |
print("Enter a number that is larger") |
if i2 > i1: |
print("That is correct") |
else: |
print("Enter a number") |
i2 = input() |
i2 = int(i2) |
i1 = int(i1) |
    print("The second number is smaller") |
i1 = input() |
print("Enter a number that is larger") |
if i2 > i1: |
    print("That is correct") |
1 | print("Enter a number") |
2 | i1 = input() |
3 | i1 = int(i1) |
4 | print("Enter a number that is larger") |
5 | i2 = input() |
6 | i2 = int(i2) |
7 | if i2 > i1: |
8 |     print("That is correct") |
9 | else: |
10 |     print("The second number is smaller") |
i3 = int(i3) |
print("Correct") |
else: |
i3 = input() |
print(total) |
i2 = input() |
i1 = input() |
if total == 20: |
i2 = int(i2) |
print("That is not correct, they add up to") |
i1 = int(i1) |
print("Enter three numbers that add up to 20") |
total = i1 + i2 + i3 |
i3 = int(i3) |
  print("Correct") |
else: |
i3 = input() |
  print(total) |
i2 = input() |
i1 = input() |
if total == 20: |
i2 = int(i2) |
  print("That is not correct, they add up to") |
i1 = int(i1) |
print("Enter three numbers that add up to 20") |
total = i1 + i2 + i3 |
1 | print("Enter three numbers that add up to 20") |
2 | i1 = input() |
3 | i2 = input() |
4 | i3 = input() |
5 | i1 = int(i1) |
6 | i2 = int(i2) |
7 | i3 = int(i3) |
8 | total = i1 + i2 + i3 |
9 | if total == 20: |
10 |   print("Correct") |
11 | else: |
12 |   print("That is not correct, they add up to") |
13 |   print(total) |
s1 = input() |
else: |
print("Enter two strings that are not identical") |
print("Those strings were identical") |
if s1 != s2: |
s2 = input() |
print("Well done!") |
s1 = input() |
else: |
print("Enter two strings that are not identical") |
  print("Those strings were identical") |
if s1 != s2: |
s2 = input() |
  print("Well done!") |
1 | print("Enter two strings that are not identical") |
2 | s1 = input() |
3 | s2 = input() |
4 | if s1 != s2: |
5 |   print("Well done!") |
6 | else: |
7 |   print("Those strings were identical") |